package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class CourseWeeklyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CourseWeeklyExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCourseweeklyidIsNull() {
            addCriterion("courseWeeklyId is null");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyidIsNotNull() {
            addCriterion("courseWeeklyId is not null");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyidEqualTo(Integer value) {
            addCriterion("courseWeeklyId =", value, "courseweeklyid");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyidNotEqualTo(Integer value) {
            addCriterion("courseWeeklyId <>", value, "courseweeklyid");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyidGreaterThan(Integer value) {
            addCriterion("courseWeeklyId >", value, "courseweeklyid");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyidGreaterThanOrEqualTo(Integer value) {
            addCriterion("courseWeeklyId >=", value, "courseweeklyid");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyidLessThan(Integer value) {
            addCriterion("courseWeeklyId <", value, "courseweeklyid");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyidLessThanOrEqualTo(Integer value) {
            addCriterion("courseWeeklyId <=", value, "courseweeklyid");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyidIn(List<Integer> values) {
            addCriterion("courseWeeklyId in", values, "courseweeklyid");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyidNotIn(List<Integer> values) {
            addCriterion("courseWeeklyId not in", values, "courseweeklyid");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyidBetween(Integer value1, Integer value2) {
            addCriterion("courseWeeklyId between", value1, value2, "courseweeklyid");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyidNotBetween(Integer value1, Integer value2) {
            addCriterion("courseWeeklyId not between", value1, value2, "courseweeklyid");
            return (Criteria) this;
        }

        public Criteria andCourseidIsNull() {
            addCriterion("courseId is null");
            return (Criteria) this;
        }

        public Criteria andCourseidIsNotNull() {
            addCriterion("courseId is not null");
            return (Criteria) this;
        }

        public Criteria andCourseidEqualTo(String value) {
            addCriterion("courseId =", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidNotEqualTo(String value) {
            addCriterion("courseId <>", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidGreaterThan(String value) {
            addCriterion("courseId >", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidGreaterThanOrEqualTo(String value) {
            addCriterion("courseId >=", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidLessThan(String value) {
            addCriterion("courseId <", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidLessThanOrEqualTo(String value) {
            addCriterion("courseId <=", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidLike(String value) {
            addCriterion("courseId like", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidNotLike(String value) {
            addCriterion("courseId not like", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidIn(List<String> values) {
            addCriterion("courseId in", values, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidNotIn(List<String> values) {
            addCriterion("courseId not in", values, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidBetween(String value1, String value2) {
            addCriterion("courseId between", value1, value2, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidNotBetween(String value1, String value2) {
            addCriterion("courseId not between", value1, value2, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyweekIsNull() {
            addCriterion("courseWeeklyWeek is null");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyweekIsNotNull() {
            addCriterion("courseWeeklyWeek is not null");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyweekEqualTo(String value) {
            addCriterion("courseWeeklyWeek =", value, "courseweeklyweek");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyweekNotEqualTo(String value) {
            addCriterion("courseWeeklyWeek <>", value, "courseweeklyweek");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyweekGreaterThan(String value) {
            addCriterion("courseWeeklyWeek >", value, "courseweeklyweek");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyweekGreaterThanOrEqualTo(String value) {
            addCriterion("courseWeeklyWeek >=", value, "courseweeklyweek");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyweekLessThan(String value) {
            addCriterion("courseWeeklyWeek <", value, "courseweeklyweek");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyweekLessThanOrEqualTo(String value) {
            addCriterion("courseWeeklyWeek <=", value, "courseweeklyweek");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyweekLike(String value) {
            addCriterion("courseWeeklyWeek like", value, "courseweeklyweek");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyweekNotLike(String value) {
            addCriterion("courseWeeklyWeek not like", value, "courseweeklyweek");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyweekIn(List<String> values) {
            addCriterion("courseWeeklyWeek in", values, "courseweeklyweek");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyweekNotIn(List<String> values) {
            addCriterion("courseWeeklyWeek not in", values, "courseweeklyweek");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyweekBetween(String value1, String value2) {
            addCriterion("courseWeeklyWeek between", value1, value2, "courseweeklyweek");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyweekNotBetween(String value1, String value2) {
            addCriterion("courseWeeklyWeek not between", value1, value2, "courseweeklyweek");
            return (Criteria) this;
        }

        public Criteria andCourseweeklydayIsNull() {
            addCriterion("courseWeeklyDay is null");
            return (Criteria) this;
        }

        public Criteria andCourseweeklydayIsNotNull() {
            addCriterion("courseWeeklyDay is not null");
            return (Criteria) this;
        }

        public Criteria andCourseweeklydayEqualTo(String value) {
            addCriterion("courseWeeklyDay =", value, "courseweeklyday");
            return (Criteria) this;
        }

        public Criteria andCourseweeklydayNotEqualTo(String value) {
            addCriterion("courseWeeklyDay <>", value, "courseweeklyday");
            return (Criteria) this;
        }

        public Criteria andCourseweeklydayGreaterThan(String value) {
            addCriterion("courseWeeklyDay >", value, "courseweeklyday");
            return (Criteria) this;
        }

        public Criteria andCourseweeklydayGreaterThanOrEqualTo(String value) {
            addCriterion("courseWeeklyDay >=", value, "courseweeklyday");
            return (Criteria) this;
        }

        public Criteria andCourseweeklydayLessThan(String value) {
            addCriterion("courseWeeklyDay <", value, "courseweeklyday");
            return (Criteria) this;
        }

        public Criteria andCourseweeklydayLessThanOrEqualTo(String value) {
            addCriterion("courseWeeklyDay <=", value, "courseweeklyday");
            return (Criteria) this;
        }

        public Criteria andCourseweeklydayLike(String value) {
            addCriterion("courseWeeklyDay like", value, "courseweeklyday");
            return (Criteria) this;
        }

        public Criteria andCourseweeklydayNotLike(String value) {
            addCriterion("courseWeeklyDay not like", value, "courseweeklyday");
            return (Criteria) this;
        }

        public Criteria andCourseweeklydayIn(List<String> values) {
            addCriterion("courseWeeklyDay in", values, "courseweeklyday");
            return (Criteria) this;
        }

        public Criteria andCourseweeklydayNotIn(List<String> values) {
            addCriterion("courseWeeklyDay not in", values, "courseweeklyday");
            return (Criteria) this;
        }

        public Criteria andCourseweeklydayBetween(String value1, String value2) {
            addCriterion("courseWeeklyDay between", value1, value2, "courseweeklyday");
            return (Criteria) this;
        }

        public Criteria andCourseweeklydayNotBetween(String value1, String value2) {
            addCriterion("courseWeeklyDay not between", value1, value2, "courseweeklyday");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyquarterIsNull() {
            addCriterion("courseWeeklyQuarter is null");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyquarterIsNotNull() {
            addCriterion("courseWeeklyQuarter is not null");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyquarterEqualTo(String value) {
            addCriterion("courseWeeklyQuarter =", value, "courseweeklyquarter");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyquarterNotEqualTo(String value) {
            addCriterion("courseWeeklyQuarter <>", value, "courseweeklyquarter");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyquarterGreaterThan(String value) {
            addCriterion("courseWeeklyQuarter >", value, "courseweeklyquarter");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyquarterGreaterThanOrEqualTo(String value) {
            addCriterion("courseWeeklyQuarter >=", value, "courseweeklyquarter");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyquarterLessThan(String value) {
            addCriterion("courseWeeklyQuarter <", value, "courseweeklyquarter");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyquarterLessThanOrEqualTo(String value) {
            addCriterion("courseWeeklyQuarter <=", value, "courseweeklyquarter");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyquarterLike(String value) {
            addCriterion("courseWeeklyQuarter like", value, "courseweeklyquarter");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyquarterNotLike(String value) {
            addCriterion("courseWeeklyQuarter not like", value, "courseweeklyquarter");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyquarterIn(List<String> values) {
            addCriterion("courseWeeklyQuarter in", values, "courseweeklyquarter");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyquarterNotIn(List<String> values) {
            addCriterion("courseWeeklyQuarter not in", values, "courseweeklyquarter");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyquarterBetween(String value1, String value2) {
            addCriterion("courseWeeklyQuarter between", value1, value2, "courseweeklyquarter");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyquarterNotBetween(String value1, String value2) {
            addCriterion("courseWeeklyQuarter not between", value1, value2, "courseweeklyquarter");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyclassroomIsNull() {
            addCriterion("courseWeeklyClassroom is null");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyclassroomIsNotNull() {
            addCriterion("courseWeeklyClassroom is not null");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyclassroomEqualTo(String value) {
            addCriterion("courseWeeklyClassroom =", value, "courseweeklyclassroom");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyclassroomNotEqualTo(String value) {
            addCriterion("courseWeeklyClassroom <>", value, "courseweeklyclassroom");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyclassroomGreaterThan(String value) {
            addCriterion("courseWeeklyClassroom >", value, "courseweeklyclassroom");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyclassroomGreaterThanOrEqualTo(String value) {
            addCriterion("courseWeeklyClassroom >=", value, "courseweeklyclassroom");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyclassroomLessThan(String value) {
            addCriterion("courseWeeklyClassroom <", value, "courseweeklyclassroom");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyclassroomLessThanOrEqualTo(String value) {
            addCriterion("courseWeeklyClassroom <=", value, "courseweeklyclassroom");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyclassroomLike(String value) {
            addCriterion("courseWeeklyClassroom like", value, "courseweeklyclassroom");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyclassroomNotLike(String value) {
            addCriterion("courseWeeklyClassroom not like", value, "courseweeklyclassroom");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyclassroomIn(List<String> values) {
            addCriterion("courseWeeklyClassroom in", values, "courseweeklyclassroom");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyclassroomNotIn(List<String> values) {
            addCriterion("courseWeeklyClassroom not in", values, "courseweeklyclassroom");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyclassroomBetween(String value1, String value2) {
            addCriterion("courseWeeklyClassroom between", value1, value2, "courseweeklyclassroom");
            return (Criteria) this;
        }

        public Criteria andCourseweeklyclassroomNotBetween(String value1, String value2) {
            addCriterion("courseWeeklyClassroom not between", value1, value2, "courseweeklyclassroom");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}